//
//  BtmView.m
//  Alarm_Clock_UserNotifications
//
//  Created by yobet on 2018/3/30.
//  Copyright © 2018年 欧阳荣. All rights reserved.
//

#import "BtmView.h"

@interface BtmView ()


@end

@implementation BtmView

-(instancetype)init {
    if (self = [super init]) {
        self = [[NSBundle mainBundle]loadNibNamed:@"btmView" owner:nil options:nil].lastObject;
    }
    return self;
}

- (IBAction)back:(UIButton *)sender {
    [[NSNotificationCenter defaultCenter] postNotificationName:@"backNotification" object:nil];
}
- (IBAction)forward:(UIButton *)sender {
    [[NSNotificationCenter defaultCenter] postNotificationName:@"forwardNotification" object:nil];
}
- (IBAction)refresh:(UIButton *)sender {
    sender.selected = !sender.selected;
    if (sender.selected) {
        [[NSNotificationCenter defaultCenter] postNotificationName:@"refreshNotification" object:nil];
    }else {
        [[NSNotificationCenter defaultCenter] postNotificationName:@"stopNotification" object:nil];
    }
}

- (IBAction)home:(UIButton *)sender {
    [[NSNotificationCenter defaultCenter] postNotificationName:@"homeNotification" object:nil];
}
@end
